﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ConsultarVentas.aspx.cs" Inherits="Presentacion.Ventas.ConsultarVentas" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Consultar Ventas</h1>
    <br />
    <h3>Filtros</h3>
    <br />
    <table>
        <tr>
            <td>Período</td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td class="style1">Fecha desde:</td>
            <td class="style1">
                <asp:Calendar ID="calendarDesde" runat="server" Height="152px" Width="183px"></asp:Calendar>
            </td>
            <td class="style1">Fecha Hasta:</td>
            <td class="style1">
                <asp:Calendar ID="calendarHasta" runat="server"></asp:Calendar>
            </td>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <asp:Button ID="btnFiltrar" runat="server" Text="Filtrar" Width="75px"
                    OnClick="btnFiltrar_Click" />
            </td>
            <td></td>
        </tr>
    </table>
    <br />

    <asp:GridView ID="grdFacturas" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="grdFacturas_SelectedIndexChanged" AllowPaging="True" EmptyDataText="No se encontraron datos" OnPageIndexChanging="grdFacturas_PageIndexChanging" PageSize="5" ShowFooter="True" ShowHeaderWhenEmpty="True" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4" GridLines="Horizontal">
        <Columns>
            <asp:BoundField DataField="IdFactura" HeaderText="Numero de Factura" />
            <asp:BoundField DataField="FechaEmision" HeaderText="Fecha Emision" />
            <asp:BoundField DataField="Cliente" HeaderText="Cliente" />
            <asp:BoundField DataField="EstadoFactura" HeaderText="Estado" />
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#333333" />
        <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="White" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F7F7F7" />
        <SortedAscendingHeaderStyle BackColor="#487575" />
        <SortedDescendingCellStyle BackColor="#E5E5E5" />
        <SortedDescendingHeaderStyle BackColor="#275353" />
    </asp:GridView>
    <asp:Label ID="lblError" runat="server" Text=""></asp:Label>
    <br />
    <asp:Label ID="lblMensajeError" runat="server" ForeColor="Red"></asp:Label>
</asp:Content>
